from sanic.views import HTTPMethodView
from sanic.response import text,json
import time
from processing.other_func import ProToken,Sercret_all,Serialization,Random_id,date_format
import json as jn
import re
from processing.Sql_DataFrom import ProJosn
import requests

def headers():
    headers = {
        'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36',
        'Authorization':'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6NTE2NTczLCJzZXNzaW9uIjoiMzQzYWYwYmNiZThlNTRlMWM4MGMyNDFiMjY5NzNiMmUifQ.-DpeKLdJhWwElfYt7NQhM_1iATLifnDr1XXA2oLK1SA'
    }

    return headers
class DashboardAgency(HTTPMethodView):
    async def get(self, request):
        db = request.app.ctx.db
        # 获取用户列表
        user_id = request.app.ctx.user_id

        # url = 'https://www.mojie.me/api/v1/passport/auth/login'
        #
        # param = {
        #     'email':'1500197853@qq.com',
        #     'password':'joanly469151'
        # }
        #
        # data = requests.post(url,data=param,headers=headers())
        # print(data.json())
        return json({'code': 301, 'message': "暂未激活,请联系客服激活!"})

